package com.gxks.lhs.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 分类表
 * </p>
 *
 * @author LuoHaisong
 * @since 2023-05-18
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Category对象", description = "分类表")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("分类id，主键")
    private Integer id;

    @ApiModelProperty("分类名称")
    private String name;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("分类的图标")
    private String img;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("修改人")
    private String updateUser;

    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty("删除标识，1是删除状态，0是正常状态")
    private String isDel;

    @ApiModelProperty("备注")
    private String remarks;


}
